<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			window.onload = function() {
				var input = document.getElementsByTagName("input")[1];
				input.onclick = function() {
					console.log("onclick");
				};
				input.onmouseover = function() {
					console.log("onmouseover");
				}
				input.onmouseout = function() {
					console.log("onmouseout");
				}
			}
			
			function cli() {
				console.log("click");
			}
			
			function over() {
				console.log("over");
			}
			
			function out() {
				console.log("out");
			}
		</script>
	</head>
	<body>
		<!--<input id="myButton" type="button" value="Press Me" onclick="alert('thanks');" >-->
		<input type="button" value="点击" onclick="cli()" onmouseout="out()" onmouseover="over()"/>
		<input type="button" value="click" />
	</body>
</html>
